﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
    <link href="~/Content/static/h-ui/css/H-ui.min.css" rel="stylesheet" />
    <link href="~/Content/static/h-ui.admin/css/H-ui.admin.css" rel="stylesheet" />
    <link href="~/Content/static/h-ui.admin/css/H-ui.login.css" rel="stylesheet" />
    <script src="~/JS/Login.js"></script>
    <link href="~/Content/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title style="color:red">登陆界面</title>
<meta name="keywords" >
<meta name="description" >
</head>
<body>
<input type="hidden" id="TenantId" name="TenantId" value="" />
<div class="header"></div>
<div class="loginWraper">
  <div id="loginform" class="loginBox">
      @using (Html.BeginForm("LoginDo", "admin", FormMethod.Post, new Dictionary<string, object> { { "onsubmit","return funclick()"  },{"class","form form-horizontal"}}))
      { 
      <div class="row cl">
        <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60d;</i></label>
        <div class="formControls col-xs-8">
          <input id="uName" name="uName" type="text" placeholder="账户" class="input-text size-L" maxlength="20" required onblur="funuName()"><br />
            <span id="tuName"></span>
        </div>
      </div>
      <div class="row cl">
        <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60e;</i></label>
        <div class="formControls col-xs-8">
            <input id="uPass" name="uPass" type="password" placeholder="密码" class="input-text size-L" maxlength="20" required onblur="funpwd()"><br />
            <span id="tuPass"></span>
        </div>
      </div>
      <div class="row cl">
        <div class="formControls col-xs-8 col-xs-offset-3">
            <input id="Validate" maxlength="6" class="input-text size-L" name="Validate" type="text" placeholder="验证码" onblur="funCode()" style="width:150px;" required >
            <img src="@Url.Action("Code", "Admin")" id="img" height="40" width="100" onclick="this.src=this.src+'?' " alt="验证码图片" />
            <a id="kanbuq" href="" onclick="ValidateCode()">看不清，换一张</a><br />
            <span id="tCode"></span>
        </div>

      </div>
      <div class="row cl">
        <div class="formControls col-xs-8 col-xs-offset-3">
            <input type="radio" name="role" value="1" checked/>学生
            <input type="radio" name="role" value="2"/>教师
            <input type="radio" name="role" value="3"/>管理员<br />
          <label for="online">
            <input type="checkbox" name="online" id="online" value="">
            使我保持登录状态</label>
        </div>
      </div>

      <div class="row cl">
        <div class="formControls col-xs-8 col-xs-offset-3">
            <input name="" type="submit" class="btn btn-success radius size-L" value="&nbsp;登&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;" onsubmit="false">
          <input name="" type="reset" class="btn btn-default radius size-L" value="&nbsp;取&nbsp;&nbsp;&nbsp;&nbsp;消&nbsp;">
        </div>
      </div>
      }
  </div>
</div>
<div class="footer">Copyright 你的公司名称 by H-ui.admin v3.1</div>
    <script type="text/javascript" src="~/Content/lib/jquery/1.9.1/jquery.min.js"></script> 
    <script type="text/javascript" src="~/Content/static/h-ui/js/H-ui.min.js"></script>
</body>
</html>
<script>
    function ValidateCode()
    {
        document.getElementById("img").src = '/ValidateCode.ashx?d=' + new Date();
    }

</script>